package com.junjie.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.junjie.springcloud.entities.CommonResult;

/**
 * @Author admin
 * @Date 2021/2/25 11:53
 * 这里定义的是全局的兜底方法(注意：这里的方法要是静态的方法)
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException1(BlockException e) {
        return new CommonResult(444, "按客户自定义，global handlerException----1");
    }

    public static CommonResult handlerException2(BlockException e) {
        return new CommonResult(444, "按客户自定义，global handlerException----2");
    }
}
